package com.chainyoung.trademarket.mvp.contract;

import com.chainyoung.common.appcommon.entity.CommonList;
import com.chainyoung.common.mvp.IModel;
import com.chainyoung.common.mvp.IView;
import com.chainyoung.trademarket.entity.Msg;
import com.chainyoung.trademarket.entity.MsgNum;

import java.util.List;
import java.util.TreeMap;

import io.reactivex.Flowable;

public interface MsgFragmentContract {

    interface View extends IView {

        void onUpdateMsgStatus(MsgNum data);

        void onGetMsgList(List<CommonList<Msg>> data);

        void onGetMsgFailed();

    }

    interface Model extends IModel {

        Flowable<MsgNum> updateMsgStatus(TreeMap<String,Object> map);

        Flowable<List<CommonList<Msg>>> getMsgList(TreeMap<String,Object> map);

    }
}
